//
//  Teacher.m
//  OC2_实例变量可见度和方法
//
//  Created by 徐国庆 on 14-10-31.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "Teacher.h"

@implementation Teacher



// 声明设置器方法
- (void)setName:(NSString *)name andSex:(NSString *)sex andAge:(int)age andHobbies:(NSString *)hobbies andTeachCurriculum:(NSString *)teacherCurriculun
{
    _name = name;
    _sex = sex;
    _age = age;
    _hobbies = hobbies;
    _teachCurriculum = teacherCurriculun;
}
// 声明访问器方法
- (NSString *)name
{
    return _name;
}
- (NSString *)sex
{
    return _sex;
}
- (int)age
{
    return _age;
}
- (NSString *)hobbies
{
    return _hobbies;
}
- (NSString *)teachCurriculum
{
    return _teachCurriculum;
}













@end
